<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>list Category</title>
</head>
<body>

<table  align='center' border='1' cellspacing='0'>

	<tr>
		<td>id</td>
		<td>name</td>
	</tr>
	<c:forEach items="${cs}" var="c" varStatus="st">
		<tr>
			<td>${c.id}</td>
			<td>${c.name}</td>
		</tr>
	</c:forEach>
	
</table>
	<div style="text-align:center">
		<a href="?start=0">首页</a>
		<a href="?start=${page.start-page.count}">上一页</a>
		<a href="?start=${page.start+page.count}">下一页</a>
		<a href="?start=${page.last}">末页</a>
	</div>

</body>
</html>